/*
 * mhcategory.h
 *
 *  Created on: 2010-8-23
 *      Author: angelstone
 */

#pragma once


#include "hiberlite.h"
#include "mhmacros.h"
#include "data/wxhiberlite.h"

namespace mediahouse {
	class CMHCategory {

		friend class hiberlite::access;

		template<class Archive>
		void hibernate(Archive & ar) {
			ar & HIBERLITE_NVP(m_Name);
			ar & HIBERLITE_NVP(m_DisplayName);
			ar & HIBERLITE_NVP(m_ParentId);
		}

	public:
	IMPL_PROPERTY(wxString, Name)
		;
	IMPL_PROPERTY(wxInt32, ParentId)
		;
	IMPL_PROPERTY(wxString, DisplayName)
		;
	};
}

namespace hiberlite {
	template<>
	std::string Database::getClassName<mediahouse::CMHCategory>();
}

